<?php 
class IndexController extends DomController {
	
	public function index() {
		$view = new DomView( 'login.html' );
		$this->view->contents = $view->fetch();
	}
	
	public function frontpage() {
		$menu = new DomView( 'menu.html' );
		$this->view->menu = $menu->fetch();

		$view = new DomView( 'frontpage.html' );
		$this->view->contents = $view->fetch();
	}
	
	public function setup() {
		$this->view->metaAuthor = '';
		$this->view->metaKeywords = '';
		$this->view->metaDescription = '';
		$this->view->pageTitle = 'Polluraamat';
	}

	public function error404() {
		$this->view->addPartitioner('contents', 'Errors/error404.html');
	}
	
	public function error403() {
		$this->view->addPartitioner('contents', 'Errors/error403.html');
	}

}
?>